package cn.kgc.airmanager.controller;

import cn.kgc.airmanager.entity.ResultEntity;
import cn.kgc.airmanager.pojo.District;
import cn.kgc.airmanager.service.DistrictService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author shkstart
 * @create 郭祥伟
 */
@RestController
public class DistrictController {
    @Resource
    DistrictService districtService;
    @RequestMapping("/getDistrictList")
    public ResultEntity<List<District>> getCategoryList(){
        List<District> categoryList=districtService.selectAll();
        return ResultEntity.successWithoutData(categoryList);
    }
}
